package com.example.order.jpa;

import com.example.order.pojo.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderRepository  extends JpaRepository<Order, Long> {

    List<Order> findByUserIdAndStatus(Long userId,Integer status);

    Order findByOrderNo(String orderNo);

}
